package org.example.erp.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.erp.domain.WmItemRecpt;
import org.example.erp.domain.WmProductRecpt;
import org.example.erp.domain.WmProductRecptLine;
import org.example.erp.mapper.WmItemRecptMapper;
import org.example.erp.mapper.WmProductRecptLineMapper;
import org.example.erp.service.WmProductRecptService;
import org.example.erp.mapper.WmProductRecptMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 86180
* @description 针对表【wm_product_recpt(产品入库录表)】的数据库操作Service实现
* @createDate 2024-12-06 15:55:08
*/
@Service
public class WmProductRecptServiceImpl extends ServiceImpl<WmProductRecptMapper, WmProductRecpt>
    implements WmProductRecptService{


    @Autowired
    private WmProductRecptMapper wmProductRecptMapper;



    public IPage<WmProductRecpt> find(Integer currentPage,
                                   Integer pageSize,
                                   String recptCode,
                                   String recptName,
                                   String recptDate) {
        Page<WmItemRecpt> page = new Page<>(currentPage, pageSize);
        return wmProductRecptMapper.findwmProductRecpt(page, recptCode, recptName, recptDate);
    }


    public IPage<WmProductRecptLine> find(Integer currentPage, Integer pageSize, String recptCode) {
        Page<WmProductRecptLine> page = new Page<>(currentPage, pageSize);
        return wmProductRecptMapper.findwmProductRecptline(page, recptCode);
    }
}




